package ua.shop;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

import java.util.Scanner;

/**
 * Hello world!
 */

public class App {

    private static Logger logger = Logger.getLogger(App.class);
    private static final String ENTER_ADDRESS_REMOUTE_SERVICE = "ENTER_ADDRESS_REMOUTE_SERVICE";
    private static final String PROMPT = ">";


    public static void main(String[] args) {


    }


    public static void start() {
        BasicConfigurator.configure();
        logger.info("start Application");

        out(ENTER_ADDRESS_REMOUTE_SERVICE);
        out(PROMPT);
        //TODO coment this string
        //  String url = in();
        String url = "test1.htm";
        try {

            Parser parser = new Parser(url);
            parser.parse();
            out(parser.toString());
        } catch (ConnectionException e) {

        }

        logger.info("end Application");
    }

    public static void out(String message) {
        System.out.println(message);
    }

    public static String in() {
        Scanner in = new Scanner(System.in);
        return in.nextLine();
    }


}

